package com.qingke.service;

import java.util.List;

import com.qingke.pojo.Blog;
import com.qingke.pojo.Comment;
import com.qingke.pojo.User;

public interface UserService {
	List<Blog> LookOverBlogOrderByTime(User user);
	List<Blog> LookOverBlogOrderByLikeAmmount();
	List<Blog> LookOverBlogOrderByPageViews();
	boolean releaseBlog(User user,Blog blog);
	boolean updateBlog(User user,Blog blog);
	boolean deleteBlog(User user,Blog blog);
	List<Blog> GroupByTitle(String title);
	List<Blog> GroupByDescription(String description);
	
	boolean Login(User user);
	boolean signUp(User user);
	boolean Logout(User user);
	boolean updateUser(User user);
	boolean deleteUser(User user);
	User selectById(int userid);
	
	boolean releaseComment(User user,Comment comment,Blog blog);
	List<Comment> LookOverCommentByBlog(User user,Blog blog);
	List<Comment> LookOverComment(User user);
	boolean deleteComment(Comment comment);
}
